import request from '@/utils/request.js'
import { usetokenstore } from '@/stores/token.js'
export const listservice =()=>{
const tokenstore=usetokenstore();
    //响应式数据的值需要
    //pinia中定义的响应式数据，不需要.value  
    return request.get('/article/list',{headers:{'jwt':tokenstore.token}})
}


export const mylistservice =()=>{
    const tokenstore=usetokenstore();
    return request.get('/article/mylist',{headers:{'jwt':tokenstore.token}})
}